package com.atguigu.day03;

import java.util.Scanner;

public class Test2 {

    public static void main(String[] args) {
        System.out.print("请输入一个字符:");
        Scanner s = new Scanner(System.in);
        char ch = s.next().charAt(0);
        if (ch >= '0' && ch <= '9') {
            System.out.println(ch + "是数字.");
        } else if (ch >= 'A' && ch <= 'Z' || ch >= 'a' && ch <= 'z') {
            System.out.println(ch + "是字母");
        } else {
            System.out.println(ch + "非数字非字母的其他字符");
        }
//        for (int i = 0;i<128;i++){
//            System.out.println(i+" "+(char)i);//48-57 65-90 97-122
//        }
    }


}
